from django.db import models

# Create your models here.

# 新闻表
class New(models.Model):
    headline=models.CharField(max_length=50,verbose_name='标题')
    content=models.TextField(verbose_name='内容')
    class Meta:
        db_table='new'

# 广告表
class advertising(models.Model):
    type=models.IntegerField(default=2,verbose_name='类型') # 1.高价广告位 2.低价广告位
    picture=models.ImageField(verbose_name='图片')
    herf=models.CharField(max_length=50,verbose_name='网址')
    class Meta:
        db_table='advertising'